﻿using StarPizza.Model.User;
using StarPizza.ViewModel.User;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StarPizza.ViewModel.ClientSystem
{
    abstract class AbstractClientData : AbstractUserData
    {
        public AbstractClientData(UserSpace userSpace)
            :base(userSpace)
        {}

        private string confirmedPassword;
        public string ConfirmedPassword
        {
            get { return confirmedPassword; }
            set
            {
                if (value != confirmedPassword)
                {
                    confirmedPassword = value;
                    OnPropertyChanged("ConfirmedPassword");
                }
            }
        }

        private string name;
        public string Name
        {
            get { return name; }
            set
            {
                if (value != name)
                {
                    name = value;
                    OnPropertyChanged("Name");
                }
            }
        }

        private int district;
        public int District
        {
            get { return district; }
            set
            {
                if (value != district)
                {
                    district = value;
                    OnPropertyChanged("District");
                }
            }
        }

        private string address;
        public string Address
        {
            get { return address; }
            set
            {
                if (value != address)
                {
                    address = value;
                    OnPropertyChanged("Address");
                }
            }
        }   
    }
}
